package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

//lombok提供的日志相关的工具
@Slf4j
@SpringBootApplication

@ServletComponentScan //开启Servlet组件的扫描，使用servlet/filter/listener生效
public class ReggieApplication {

    public static void main(String[] args) {
        SpringApplication.run(ReggieApplication.class, args);
        String msg = "项目启动成功";;
        log.info("log:{}",msg);
    }

}
